package com.khalil.kkadmin.ai.rag.knowledgeset.entity;

import com.khalil.kkadmin.infrastructure.jpa.domain.EntityBase;
import jakarta.persistence.Entity;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

@EntityListeners(AuditingEntityListener.class)
@Entity
@Table(name = "rag_knowledge_doc")
@EqualsAndHashCode(callSuper = true)
@Data
public class RagKnowledgeDoc extends EntityBase<Long> {
    private Long knowledgeSetId;
    private Long documentId;

    private Integer textExtractStatus; // 文本抽取状态,0：未开始，1：进行中，99：完成

    public static final Integer TEXT_EXTRACT_STATUS_NOT_START = 0;
    public static final Integer TEXT_EXTRACT_STATUS_IN_PROGRESS = 1;
    public static final Integer TEXT_EXTRACT_STATUS_COMPLETE = 99;
}
